<include file="public:header" />
<!--添加公告-->
<form id="info_form" action="{:U('notice/edit')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">

		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120">{:L('notice_title')} :</th>
						<td><input type="text" name="title" value="{$info.title}" id="J_title" class="input-text" size="30"></td>
					</tr>

					<tr>
						<th>{:L('publish')} :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" <if condition="$info.status eq 1"> checked="true"</if> value="1"> {:L('yes')} </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style"  <if condition="$info.status eq 0"> checked="true"</if>  value="0"> {:L('no')}</label>
						</td>
					</tr> 
                    <!--tr>                        
            	      <th>{:L('store_channel')} :</th>
            	      <td>
                            <label><input type="radio" name="channel"  <if condition="$info.channel eq 0"> checked="true"</if>  value="0" > {:L('store_channel0')}</label>&nbsp;&nbsp;
                            <label><input type="radio" <if condition="$info.channel eq 1"> checked="true"</if> name="channel" value="1" > {:L('store_channel1')}</label>&nbsp;&nbsp;
                            <label><input type="radio" <if condition="$info.channel eq 2"> checked="true"</if> id="channel2" name="channel" value="2"> {:L('store_channel2')}</label>
            	      </td> 
                    </tr-->
                                       
                    		          
		            <tr>
						<th>{:L('notice_region')} :<a id="select_all" href="javascript:void(0);">(全选)</a></th>
						<td>
     	                    <volist name="regionList" id="v">
                                  <label><input type="checkbox" <if condition="$key eq $info['region']">checked="true"</if> name="region[]" value="{$key}" />{$v}</label>&nbsp;&nbsp;
                            </volist>
		                </td>
					</tr>
		            <tr>
						<th>{:L('article_copyfrom')} :</th>
						<td><input type="text" name="copyFrom" id="copyFrom" value="{$info.copyFrom}" class="input-text" size="30"></td>
					</tr>
                    <tr>
						<th>{:L('publish_time')} :</th>
						<td><input type="text" value="" size="22" class="date" id="publish_time" name="publishTime" {$info.publishTime|date='Y-m-d H:i:s',###}></td>
		 			</tr>                    
                    
		            <tr>
						<th>{:L('notice_att')} :</th>
						<td><input type="file" name="file" id="file" class="input-text"  style="width:200px;" /></td>
		 			</tr>
                    <tr>
						<th>{:L('notice_con')} :</th>
		                <td><textarea name="con" id="info" style="width:68%;height:400px;visibility:hidden;resize:none;">{$info.con}</textarea></td>
					</tr>		            
				</table>
			</div>
		
        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
<input type="hidden" name="id" value="{$info.id}" /> 
</form>
<include file="public:footer" />
<script src="__STATIC__/js/kindeditor/kindeditor.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>
$(document).ready(function (){
	KindEditor.create('#info', {
		uploadJson : '{:U("attachment/editer_upload")}',
		fileManagerJson : '{:U("attachment/editer_manager")}',
		allowFileManager : true
	});
Calendar.setup({
    inputField : "publish_time",
    ifFormat   : "%Y-%m-%d %H:%M:%S",
    showsTime  : true,
    timeFormat : "24"
});    
$("#select_all").click(function(){
   
   $("input[name='region[]']").attr("checked",true);    
})
});
</script>
</body>
</html>